<?
    class Principio_Model_Account
    {
        private $id;
        private $company_id;
        private $login;
        private $password;
        private $display_name;
        private $short_name;



        public function __construct(&$values = null)
        {
            if (is_null($values))
            {
                $this->id = -1;
                $this->company_id = -1;
                $this->login = "";
                $this->password = "";
                $this->display_name = "";
                $this->short_name = "";
            }
            else
            {
                $this->id = (isset($values['id']) ? $values['id'] : -1);
                $this->company_id = $values['company_id'];
                $this->login = $values['login'];
                $this->password = $values['password'];
                $this->display_name = $values['display_name'];
                $this->short_name = $values['short_name'];
            }
        }


        public function getLogin()
        {
            return $this->login;
        }


        public function setLogin($login)
        {
            $this->login = $login;
            return $this;
        }


        public function getPassword()
        {
            return $this->password;
        }


        public function setPassword($password)
        {
            $this->password = $password;
            return $this;
        }

        public function getDisplayName()
        {
            return $this->display_name;
        }


        public function setDisplayName($display_name)
        {
            $this->display_name = $display_name;
            return $this;
        }


        public function getShortName()
        {
            return $this->short_name;
        }


        public function setShortName($short_name)
        {
            $this->short_name = $short_name;
            return $this;
        }

        public function getCompanyID()
        {
            return $this->company_id;
        }

        public function setCompanyID($company_id)
        {
            $company_id_ = intval($company_id);
            if ($company_id_ < 1)
                throw new Exception($company_id_." < 1");

            $this->company_id = $company_id_;
            return $this;
        }


        public function getID()
        {
            return $this->id;
        }


        public function setID($id)
        {
            $id_ = intval($id);
            if ($id_ < 1)
                throw new Exception($id_." < 1");

            $this->id = $id_;
            return $this;
        }
    }
?>